/*
 * date: 2009-11-23 
 * author: Maciej Smolenski <jezdnia@gmail.com>
 */
#include <syslog.h>

#define SYSLOG_RETURN(rvalue, format, args...) \
	do{\
		syslog(LOG_EMERG, format, ##args); \
		return rvalue; \
	}while(0)

#define SYSLOG_ERR(format, args...) \
	do{\
		syslog(LOG_ERR, format, ##args); \
	}while(0)

#define SYSLOG_OPTION	LOG_CONS | LOG_PERROR | LOG_PID

#define SYSLOG_FACILITY	LOG_DAEMON

